<style scoped>
.item {
  display: inline-block;
  width: 23%;
  background: url("../../static/img2/img09.png");
  background-size: 100% 100%;
  padding: 7px 12px 18px 11px;
  box-sizing: border-box;
  margin-left: 6%;
  cursor: pointer;
}
.item img {
  width: 40%;
  margin: 20px 0;
}

.item .name-con {
  width: 100%;
  text-align: center;
  display: block;
  color: #000;
  font-size: 18px;
  padding: 3px;
  box-sizing: border-box;
}
.item-content {
  position: relative;
  height: 100%;
  border-radius: 10px;
  text-align: center;
  padding: 5px 0 5% 0;
}
.item-content img {
  border-radius: 14px;
}
.name-con span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
}
.zhiwei-text {
  font-size: 14px;
  height: 30px;
  overflow: hidden;
  line-height: 30px;
}
.img2 {
  display: none;
}
.name-text {
  font-size: 28px;
  font-weight: bold;
}
@media screen and (max-width: 1400px) {
  .item .name-con {
    font-size: 16px;
  }
}
</style>
<style>
.item.show {
  position: relative;
  z-index: 9;
}
.item.show .item-content > img {
  transform: scale(2);
  transition: all 1s;
}
.item.now .item-content > img {
  transform: scale(1);
}
</style>
<template>
  <div class="item"  @click="deleteOne(item.user_id)">
    <div class="item-content">
      <!-- <img :src="item.head"> -->
      <img src="../../static/img2/user_img.png">
      <div
        class="name-con"
        v-if="!(none=='none')"
      >
        <span class="name-text">{{item.name}}</span>
        <span class="zhiwei-text">{{item.department_name}}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: []
    };
  },
  props: ["item", "none"],
  methods:{
    deleteOne(id){
      this.$emit('delete',id)
    }
  }
};
</script>
